home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / anacroz.swf / scripts / DefineButton2_1746 / BUTTONCONDACTION on(press).as
Text File  |  2010-11-09  |  598b  |  27 lines

  1. on(press){
  2.    if(_root.sd_sel >= 0)
  3.    {
  4.       if(_root["s" + _root.sd_sel]._currentframe == 7)
  5.       {
  6.          _root.showAlert("Catapultas n├úo podem carregar itens!");
  7.       }
  8.       else
  9.       {
  10.          if(_root.sd_sel == 0)
  11.          {
  12.             _root.sd_item_sel = _root["s" + _root.sd_sel]._currentframe + 6;
  13.          }
  14.          else
  15.          {
  16.             _root.sd_item_sel = _root["s" + _root.sd_sel]._currentframe;
  17.          }
  18.          _root.destino = "itens";
  19.          play();
  20.       }
  21.    }
  22.    else
  23.    {
  24.       _root.showAlert("Selecione algum soldado!");
  25.    }
  26. }
  27.